
# 实例化测试套件

# 添加测试类

# 实例化TextTestRunner类

# 运行测试套件
import unittest
from config import init_log_config

from htmltestreport import HTMLTestReport

from config import BASE_PATH

if __name__ == '__main__':
    init_log_config()

    suite = unittest.defaultTestLoader.discover(BASE_PATH + '/scripts', 'test*')

    report = HTMLTestReport(BASE_PATH + '/report/report.html', title="p2p金融项目", description="V1.0")

    report.run(suite)
